<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>droppable</title>
 <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
 <link rel="stylesheet" href="/resources/demos/style.css" />
<script>
$(function(){
	$("#draggable").draggable();
	$("#droppable").droppable({
		drop:function(event,ui){
			$(this)
			.addClass("ui-state-highlight")
			.find("p")
			.html("어떻게 알았지!");
		}
		
		
	});
});


</script>

</head>
<body>
<div id='draggable' class='ui-widget-content'>
<p>그곳에 가고싶다.</p>
</div>
<div id="droppable" class='ui-widget-content'>
<p>혹시여기??</p>
</div>

</body>
</html>